﻿using AutoMapper;
using AutoMapper.Data;
using DataServer.ApplicationLib.Entities;
using DataServer.CommonLib.Models.ConfigData;
using System.Data;

namespace Config.WebApi.Mappers
{
    public class ConfigDataProfile : Profile
    {
        public ConfigDataProfile()
        {
            this.AddDataRecordMember();

            CreateMap<ConfigDataEditRequestDto, ConfigDataEntity>();

            CreateMap<ConfigDataEntity, ConfigDataInfoResponseDto>();

            CreateMap<IDataRecord, ConfigDataCheckEntity>();

            CreateMap<IDataRecord, ConfigDataEntity>();
        }
    }
}
